package io.renren.modules.wyzs.mobile_BillAdapterMoudle;


import io.renren.modules.wyzs.mobile_EnumMoudle.OwnCtlType;

public class OwnField {
	public OwnField(FieldTemp temp) {
		_fieldTemp = temp;
	}

	public void Init(Object value) {
		_oldValue = value;
		Value = value;
		_init = true;
	}

	private Boolean IsEdit;
	public void setIsEdit(){
		if(Value==_oldValue){
			IsEdit= false;
		}

		IsEdit= true;
	}

	public Boolean getIsEdit(){
		if(Value==_oldValue){
			return false;
		}

		return true;
	}

	// / <summary>
	// / 当前字段的值
	// / </summary>
	private Object Value;
	public void setValue(Object value){
		Value=value;
		_value=value;
	}
	// / <summary>
	// / 原始值
	// / </summary>
	public Object getValue() {

		return Value;
	}

	// / <summary>
	// / 原始值
	// / </summary>
	public Object getOldValue() {

		return _oldValue;
	}

	// / <summary>
	// / 字段模板
	// / </summary>
	public FieldTemp getFieldTemp() {

		return _fieldTemp;
	}


	// / <summary>
	// / 在界面上显示的值
	// / </summary>
	public Object getShowValue() {
		return _showValue;
	}

	private Object _value;
	private Object _oldValue;
	private Object _showValue;
	private OwnCtlType _controlType;
	private Object _control;
	private FieldTemp _fieldTemp;
	private Boolean _init = false;

	public void BingControl(Object control, OwnCtlType controlType) {
		_control = control;
		_controlType = controlType;
	}
}

